package com.peace.hospital.opdept.service.common;

import com.baomidou.mybatisplus.extension.service.IService;
import com.peace.hospital.entity.common.People;
import com.peace.hospital.opdept.mapper.common.PeopleMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 * 病人表 服务类
 * </p>
 *
 * @author 谢晓峰
 * @since 2019-11-11
 */
public interface IPeopleService extends IService<People> {
    int addPeople(People people);


    /**
     * 1、验证用户是否存在该病人
     * 2、查询病人信息
     */
    People selectPeopleByPeople(People people);

    List<People> getPeopleByNameOrCode(People people);
}
